#ifndef INPUT_H
#define INPUT_H

#include "../boolean.h"
#include "../data.h"
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#define MaxFN 60 // Panjang maksimal nama file

char CC; //Current character
char Namafile[MaxFN]; 
char CS[MaxCol]; //Current string
boolean EndOfFile;
int lidx; //Index baris

void START(); //Baca satu karakter pada file
void ADV(); //Baca karakter berikutnya
void IgnoreBlank();
void STARTLINE(); //Baca satu baris pada file
void ADVLINE(); //Baca baris berikutnya
void CloseFile();
void OutputStart();

void Read(char* filename); //Membaca file bernama filename
void WriteLine(char* args);
void WriteInt(int args);

#endif